package dm71.espil.models;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * TODO Put here a description of what this class does.
 *
 * @author Moulde.
 *         Created Dec 20, 2011.
 */
public class PendingRequest
{
	User user;
	User friend;
	
	public PendingRequest(JSONObject obj)
	{
		try
		{
			user = new User(obj.getJSONObject("User"));
			friend = new User(obj.getJSONObject("Friend"));
		}
		catch (JSONException exception)
		{
			// TODO Auto-generated catch-block stub.
			exception.printStackTrace();
		}
	}

	public User getUser()
	{
		return this.user;
	}

	public User getFriend()
	{
		return this.friend;
	}
}
